package tt.dz.entity.charger;

import java.io.Serializable;
import java.util.Date;

import tt.dz.util.annotation.PrimaryKey;
import tt.dz.util.annotation.Table;

/**
 * 故障记录表
 * 
 * @author xielongfei
 * 
 */
@Table(name = "oms_charger_error_record")
public class OmsChargerErrorRecord implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5802176953461801731L;
	@PrimaryKey
	private Long charger_error_id;
	private String charger_id;
	/** 按照协议来做的故障码 */
	private String error_code;
	private String update_oper_id;
	private Date handle_time;
	private String error_msg;
	/** 1：已处理，\r\n 0：未处理 */
	private Integer status;
	private String handle_text;
	private String create_oper_id;
	private Date create_time;
	private Date update_time;
	private Integer valid_flag;
	
	
	
	public OmsChargerErrorRecord() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	public OmsChargerErrorRecord(String charger_id, String error_code, 
			String error_msg, String create_oper_id) {
		super();
		this.charger_id = charger_id;
		this.error_code = error_code;
		this.error_msg = error_msg;
		this.status = 0; // 0:未处理,1:已处理
		this.create_oper_id = create_oper_id;
		this.create_time = new Date();
		this.valid_flag = 1;//有效
	}
	public String getCharger_id() {
		return charger_id;
	}
	public void setCharger_id(String charger_id) {
		this.charger_id = charger_id;
	}
	public Date getHandle_time() {
		return handle_time;
	}
	public void setHandle_time(Date handle_time) {
		this.handle_time = handle_time;
	}
	public String getError_code() {
		return error_code;
	}
	public void setError_code(String error_code) {
		this.error_code = error_code;
	}
	public String getError_msg() {
		return error_msg;
	}
	public void setError_msg(String error_msg) {
		this.error_msg = error_msg;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getHandle_text() {
		return handle_text;
	}
	public void setHandle_text(String handle_text) {
		this.handle_text = handle_text;
	}
	public String getCreate_oper_id() {
		return create_oper_id;
	}
	public void setCreate_oper_id(String create_oper_id) {
		this.create_oper_id = create_oper_id;
	}
	public Date getCreate_time() {
		return create_time;
	}
	public void setCreate_time(Date create_time) {
		this.create_time = create_time;
	}
	public String getUpdate_oper_id() {
		return update_oper_id;
	}
	public void setUpdate_oper_id(String update_oper_id) {
		this.update_oper_id = update_oper_id;
	}
	public Date getUpdate_time() {
		return update_time;
	}
	public void setUpdate_time(Date update_time) {
		this.update_time = update_time;
	}
	public Integer getValid_flag() {
		return valid_flag;
	}
	public void setValid_flag(Integer valid_flag) {
		this.valid_flag = valid_flag;
	}
	public Long getCharger_error_id() {
		return charger_error_id;
	}
	public void setCharger_error_id(Long charger_error_id) {
		this.charger_error_id = charger_error_id;
	}
}
